package cg.project.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor //全参构造
@NoArgsConstructor //空参构造
public class User implements Serializable {
    private Integer id;
    private String username;
    private String email;
    private String pwd;
    private Integer power;
}

/*
drop table tbl_user;
create table tbl_user(
	id int primary key auto_increment,
  username varchar(20) not null unique,
  email varchar(20) not null unique,
  pwd varchar(20) not null,
  power int
);

insert into tbl_user values(1,'admin','849962874@qq.com','123456',0);
insert into tbl_user values(2,'tom','849962875@qq.com','123456',1);

 */
